<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        #app {
            display: flex;
            flex-wrap: wrap;
            padding: 10px;
            font-size: 12px;
            justify-content: space-between;
            align-items: center;
        }

        .card {
            width: 30%;
            background-color: #f5f5f5;
            margin-bottom: 10px;
            text-align: center;
            line-height: 40px;
        }
    </style>
</head>

<body>
    <div id="app">
        <div class="card" v-for="(item,index) in arr">
            <div class="price">￥{{item.price}}</div>
            <div class="title">{{item.title}}</div>
            <div class="cond">满{{item.cond}}元可用</div>
            <button @click="lingqu(item,index)">{{item.lq?'去使用':'使用'}}</button>
        </div>
    </div>

    <script src="vue-2.5.21.js"></script>
    <script src="index-列表渲染3.js"></script>
</body>

</html>